package com.zbf.api;

import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/6/19  9:53
 * 描述:
 */
@Component
public class MtFallbackFactory implements FallbackFactory<TestFeginApi> {
    public TestFeginApi create(Throwable throwable) {
        System.out.println("==========>"+throwable.getMessage());
        return new TestFeginApiImpl(throwable);
    }
}
